﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClientLibrary;
using NewsCrawler.Common.Interfaces;
using NewsCrawler.Common.Models;

namespace BusinessLayer
{
    public class CategoryBusiness
    {
        public static Category GetCategory(string name)
        {
            IRepository repository = Core.Instance.Repository;
            Category model = repository.GetCategoryByName(name);
            return model;
        }
    }
}
